Skip to content

feat: more robust apply_patch tool management#15

Merged
code-yeongyu merged 1 commit into
mainfrom
fu5ha/tool-replace-robustness-rebased
May 20, 2026
Merged

feat: more robust apply_patch tool management#15
code-yeongyu merged 1 commit into
mainfrom
fu5ha/tool-replace-robustness-rebased

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

Rebased from #11 by @fu5ha. Reworks the tool toggling logic so that reloading a session with apply_patch already active keeps it active, instead of silently removing apply_patch.

New logic:

  • GPT-family model active: always include apply_patch, drop standard edit/write
  • Non-GPT model: drop apply_patch, restore standard edit/write

Adds 5 new tests covering session_start, model_select, before_agent_start (new), and reload-with-apply_patch scenarios. Test harness typing fixed for exactOptionalPropertyTypes.

Closes #11.

@code-yeongyu code-yeongyu merged commit 6f80622 into main May 20, 2026
5 checks passed
@code-yeongyu code-yeongyu deleted the fu5ha/tool-replace-robustness-rebased branch May 20, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants